package com.ch.client;

import com.ch.Result;
import com.ch.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(value = "user",url = "http://localhost:10010/user")
public interface UserClient {
    @GetMapping("getbyid/{id}")
    User getById(@PathVariable int id, @RequestHeader("authorization") String token);
}
